import axios from 'axios';


var instance = axios.create({ headers: {'content-type': 'application/x-www-form-urlencoded'} });

export const getProlist = params =>{return instance.get('http://jx.xuzhixiang.top/ap/api/allproductlist.php',{params:params});};

export const addPro = params =>{return instance.get('http://jx.xuzhixiang.top/ap/api/goods/goods-add.php',{params:params});};

export const updataPro = params =>{return instance.get('http://jx.xuzhixiang.top/ap/api/goods/goods-update.php',{params:params});};

export const deletePro = params =>{return instance.get('http://jx.xuzhixiang.top/ap/api/goods/goods-delete.php',{params:params});}